#include "DoubleLinkedList.h"
#include<iostream>
using namespace std;

void main()
{
	DoubleLinkedList<double> dlList;
	DoubleLinkedList<double> dlList2;
	dlList.push_back(4);
	double outValue;
	while (dlList.pop_front(outValue))
	{
		cout<<outValue<<endl;
	}
	cout<<endl;
	dlList.push_back(4.1);
	dlList.push_back(4.2);
	dlList.push_back(4.3);
	dlList.push_front(1);
	dlList.push_front(1.1);
	dlList.push_front(1.2);
	while (dlList.pop_front(outValue))
	{
		cout<<outValue<<endl;
	}
	dlList2 = dlList;
	dlList2.push_front(1.3);
	dlList2.push_front(5);
	while (dlList.pop_front(outValue))
	{
		cout<<outValue<<endl;
	}
	cout<<endl;
	while (dlList2.pop_front(outValue))
	{
		cout<<outValue<<endl;
	}
}